*Master do file for pilot

***define paths
global main "C:/Users/.../Replication Package/paper"

global PilotPublicData  = "${main}/data"
global OutTexTab        = "${main}/output/tables"
global Code             = "${main}/code"
global Programs         = "${main}/code/programs"

*** Required programs
local programs = "labutil estout ietoolkit distinct tabout reclink dataout texsave iefieldkit winsor"
local install = 0
if (`install'==1) { 
  foreach p in `programs' {
    ssc install `p'
  }
} 

***Command to export the latex tables
run "${Programs}/texsave_custom.do"
run "${Programs}/iebaltab.ado"
 
***Run tables
* Main paper tables
do "${Code}/T01-descriptives.do"
do "${Code}/T02-het-internal-ranking.do"
